package com.eight.group.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.eight.group.pojo.Site;
import com.xqx.eight.group.service.SiteService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/address")
public class AddressController {

    @Reference
    private SiteService siteService;

    @RequestMapping("/findAll.do")
    public List<Site> findAll(){
        List<Site> list = siteService.findAll();
        return list;
    }
}
